package com.moon.interview.model.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@Schema(description = "题库返回参数")
public class QuestionBankVo {
    /** ID */
    @Schema(name = "id", description = "ID")
    private Long id;

    /** 标题 */
    @Schema(name = "title", description = "标题")
    private String title;

    /** 描述 */
    @Schema(name = "description", description = "描述")
    private String description;

    /** 图片 */
    @Schema(name = "picture", description = "图片")
    private String picture;

    /** 用户Id */
    @Schema(name = "userId", description = "用户Id")
    private Long userId;

    /** 用户昵称 */
    @Schema(name = "userName", description = "用户昵称")
    private String userName;

    /** 创建时间 */
    @Schema(name = "createTime", description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @Schema(name = "updateTime", description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 题目列表 */
    @Schema(name = "questionSimpleVoList", description = "题目列表")
    private Page<QuestionSimpleVo> question;
}
